﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using dotUML.System;

namespace dotUML.Core
{
    /// <summary>
    /// DiagramEngineFactory is a factory class, which creates instances 
    /// of DiagramEngine class and provides them via IDiagramEngine interface.
    /// </summary>
    public static class DiagramEngineFactory
    {
        /// <summary>
        /// Creates an instance of the diagram engine.
        /// </summary>
        /// <returns>Instance of the diagram engine via IDiagramEngine interface.</returns>
        public static IDiagramEngine GetDiagramEngine()
        {
            return (IDiagramEngine)InstrumentationManager.InstrumentObject(new DiagramEngine(), EInstrumentationType.Logging);
        }
    }
}
